package sk.saly.impl;

import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import sk.saly.Data;
import sk.saly.MyServicePortType;
import sk.saly.Student;

@Stateless
@WebService(targetNamespace = "http://ws.saly.com", name = "MyServicePortType", serviceName="MyService")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) 
public class MyServiceBean implements MyServicePortType
{
	@WebMethod
	public Data sendData(Data args0)
	{
		Data data = new Data();
		Student student = new Student();
		student.setName("JWS expert !");
		data.getStudents().add(student);
		
		return data;
	}

}
